import '../../jm_flutter.dart';
export 'resources/resources.dart';
export 'page/page.dart';
export 'routers/routes.dart';
export 'widget/widget.dart';
export 'package:animate_do/animate_do.dart';
export 'package:flutter_spinkit/flutter_spinkit.dart';

void initUi({
  JmColorsData? colors,
  JmAssetsData? assets,
  StatusBarType? statusBarType,
}) {
  if (colors != null) {
    JmColors = colors;
  }
  if (assets != null) {
    JmAssets = assets;
  }

  JmStatusBarStyle = statusBarType ?? StatusBarType.black;
}

void updateJmColor(JmColorsData colors, {bool appUpdate = true}) {
  JmColors = colors;
  if (appUpdate) {
    forceAppUpdate();
  }
}
